<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>包装资料</h4>
        <div class="box-body no-padding">
            <div class="row">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-2 margin-r-5">
                    <div class="form-group">
                        <label class=" control-label">包装长度(CM)</label>
                        <div class="box-body">
                            {{ $ps->packing->pack_long ?? '' }}
                        </div>
                    </div>
                </div>
                <div class="col-sm-2 margin-r-5">
                    <div class="form-group">
                        <label class=" control-label">包装宽度(CM)</label>
                        <div class="box-body">
                            {{ $ps->packing->pack_wide ?? '' }}
                        </div>
                    </div>
                </div>
                <div class="col-sm-2 margin-r-5">
                    <div class="form-group">
                        <label class=" control-label">包装高度(CM)</label>
                        <div class="box-body">
                            {{ $ps->packing->pack_high ?? '' }}
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-2 margin-r-5">
                    <div class="form-group">
                        <label class=" control-label">产品发货重量(KG)</label>
                        <div class="box-body">
                            {{ $ps->packing->ship_weight ?? '' }}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <h4>装箱资料</h4>
        <div class="box-body no-padding">
            @if($ps->packing_box->isNotEmpty())
                @foreach($ps->packing_box as $item)
                    <div class="row">
                        <label class="col-sm-2 control-label">{{ $item->area_type ? \App\Models\Product\ProductPackingBox::$_areaType[$item->area_type] : '' }}</label>
                        <div class="col-sm-2 margin-r-5">
                            <div class="form-group">
                                <label class=" control-label">箱子长度(CM)</label>
                                <div class="box-body">
                                    {{ $item->box_long ?? '' }}
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-2 margin-r-5">
                            <div class="form-group">
                                <label class=" control-label">箱子宽度(CM)</label>
                                <div class="box-body">
                                    {{ $item->box_wide ?? '' }}
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-2 margin-r-5">
                            <div class="form-group">
                                <label class=" control-label">箱子高度(CM)</label>
                                <div class="box-body">
                                    {{ $item->box_high ?? '' }}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <label class="col-sm-2 control-label"></label>
                        <div class="col-sm-2 margin-r-5">
                            <div class="form-group">
                                <label class=" control-label">每箱发货数量</label>
                                <div class="box-body">
                                    {{ $item->num_per_box ?? '' }}
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-2 margin-r-5">
                            <div class="form-group">
                                <label class=" control-label">每箱发货重量(KG)</label>
                                <div class="box-body">
                                    {{ $item->weight_per_box ?? '' }}
                                </div>
                            </div>
                        </div>
                    </div>
                @endforeach
            @else
                <div class="row">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-3 margin-r-5">
                        <div class="form-group">
                            <label class=" control-label">暂无该产品的装箱规格，请提醒相关负责人添加！</label>
                        </div>
                    </div>
                </div>
            @endif
        </div>
    </div>
</div>
